package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@EnableZuulProxy
@SpringBootApplication
public class ServicesGatewayApplication {

    @Bean
    public LoadApiHandler loadApiHandler() {
        return new LoadApiHandler();
    }

    @Bean
    public TokenValidZuulFilter tokenValidZuulFilter() {
        return new TokenValidZuulFilter();
    }

    public static void main(String[] args) {
        SpringApplication.run(ServicesGatewayApplication.class, args);

    }
}
